//
//  ViewController.m
//  test1111
//
//  Created by dunkhome on 2021/4/9.
//

#import "ViewController.h"
#import "TestView.h"
#import "UIView+Additions.h"
// 宽高
#define WIN_WIDTH  [[UIScreen mainScreen] bounds].size.width
#define WIN_HEIGHT [[UIScreen mainScreen] bounds].size.height
// 状态栏高度
#define STA_HEIGHT [[UIApplication sharedApplication] statusBarFrame].size.height
// 导航栏高度
#define NAV_HEIGHT (STA_HEIGHT + 44)
// 底部高度
 #define TABBAR_HEIGHT (STA_HEIGHT == 44 ? 83 : 49)

@interface ViewController ()
@property (nonatomic,strong) TestView *vTestView;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor grayColor];
    
    _vTestView = [[TestView alloc]initWithFrame:CGRectMake(0, WIN_HEIGHT - 62 - TABBAR_HEIGHT, WIN_WIDTH, WIN_HEIGHT - NAV_HEIGHT - TABBAR_HEIGHT)];
    _vTestView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:_vTestView];
}


@end
